<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="cache-control" content="no-cache"/>
	<meta http-equiv="expires" content="0"/>    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
	<meta http-equiv="description" content="This is my page"/>
		<title>资讯详情页</title>
		<link href="../resource/css/css2.css" rel="stylesheet" type="text/css" />
 		<link href="<%=basePath%>resource/css/css.css" rel="stylesheet" type="text/css" />
		<script src="<%=basePath %>/resource/js/jquery-1.4.2.js"></script>
		<script type="text/javascript" src="<%=basePath %>/resource/js/pagination2.js"></script>
        <link rel="stylesheet" type="text/css" href="<%=basePath %>/resource/css/pagination2.css"></link>
 	<script>
		
  pageno_warning_text = "输入的页码不是数字，请重新输入！";
  $(function(){
	if(document.getElementById("pagenation")){
		pagination({
			totalRecords: $("#totalRecords").val(),
			pageNo: $("#pageNo").val(),
			limit: $("#limit").val(),
			showPages: 8,
			id:'pagenation',
			uri:function(pageNo,limit){
				searchPagenation(pageNo,limit);
			}
		})
	}
});		
 function searchPagenation(pageNo,limit){
	     window.location.href = '<%=basePath%>/goods/goods_moreGoods.shtml?brandId='+${brandId}+'&pageNo='+pageNo+'&limit='+limit;
	}
</script>  
<style type="text/css">
#nav-1 {
	line-height: 30px;
	height: 30px;
	width: 970px;
	margin-top: 0px;
	margin-right: auto;
	margin-bottom: 0px;
	margin-left: auto;
	color: #333;
	background-image: url(images/homelink.gif);
	background-repeat: no-repeat;
	background-position: left center;
	padding-left: 20px;
		text-align:left;
}
</style>     
</head>

<body id="top">
<form id="form1" name="form1" method="post" action="">
    <jsp:include page="../top.jsp"></jsp:include>
<center>    
<div id="nav">
 <table width="970" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="background:url(../resource/img/index/sh-1.jpg) no-repeat; height:39px; width:11px">&nbsp;</td>
    <td width="982" style="background:url(../resource/img/index/sh-2.jpg) repeat-x; line-height:33px">
      <div id="nav-1" ><a href="<%=basePath %>home.shtml">首页</a> &gt; <a href="#">${categoryname} </a></div>
      
    </td>
    <td style="background:url(../resource/img/index/sh-3.jpg) no-repeat; height:39px; width:7px">&nbsp;</td>
  </tr>
</table>   
</div>
</center>    
  <div id="banner2">
  <table width="998" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="328" align="left" valign="top" style="background:url(../resource/img/index/banner_03.jpg) repeat-y">
    <div class="list">
    <ul>
       <s:iterator value="brandlist" status="stat" var="brand">
               <li><a href="<%=basePath%>brand/detailShoper.shtml?id=<s:property value="#brand.id"/>"><img src="../<s:property value="#brand.imgsrc"/>" width="144" height="85" /></a></li>		
		</s:iterator>
      
    
    </ul>
    </div>
    </td>
    <td width="10px">&nbsp;</td>
   	<td height="225px" align="left" valign="top"
									style="padding-top: 9px">

										<ul class="left-4">
											<s:iterator value="#goodslist.list" status="stat" var="goods">
											<li>
												<table width="153" height="206" cellspacing="0"
													cellpadding="0">
													<tr>
														<td height="30px" align="left" valign="top">
															<div class="left-4-1">
																<nobr><a href="#" title="<s:property value="name"/>"><s:property value="name"/></a></nobr>
															</div>

														</td>
													</tr>
													<tr>
														<td height="107" align="left">
															<div class="left-4-2">
																<img src="<%=basePath%><s:property value="imgSrc"/>" width="153"
																	height="107" />
															</div>
														</td>
													</tr>
													<tr>
														<td>
															<div class="left-4-3">
																<table width="153" border="0" cellspacing="0"
																	cellpadding="0">
																	<tr>
																		<td height="20px" colspan="2" align="center">
																			原价￥<s:property value="price"/> 抢购价
																			<span
																				style="color: #ff3300; font-size: 14px; font-weight: 600">￥<s:property value="upprice"/></span>
																		</td>
																	</tr>
																	<tr>
																		<td width="68px" height="31" align="left" valign="top">
																			<div class="left-4-4">
																				<a href="<%=basePath%>/tgBrandMember/pingQiang.shtml?id=<s:property value="id"/>">&nbsp;去看看</a>
																			</div>
																		</td>
																		<td>
																			已有<s:property value="joinCount"/>人参与
																		</td>
																	</tr>
																	<tr>
																		<td height="17" colspan="2" align="center">
																			<s:property value="activeTime"/>
																		</td>
																	</tr>
																</table>

															</div>
														</td>
													</tr>
												</table>
											</li>
											</s:iterator>
										</ul>
										 <div id="pagenation" style="height:35px;float:right">
											   		<input type="hidden" id="totalRecords" value='${goodslist.totalRecords}' />
										   			<input type="hidden" id="pageNo" value='${goodslist.pageNo}' />
										   		    <input type="hidden" id="brandId" value='${brandId}' />
										   			<input type="hidden" id="limit" value="20"/>
										   			<input type="hidden" id="uri" value=""/>
										    </div>	
								</td>
  </tr>
</table>
</div>
<iframe src="../index/footer.html" frameborder="0" scrolling="no" width="100%"; height="90px;"></iframe>
</form>
</body>
</html>
